import UcRequest from '../utils/request'
import request from "@/utils/request";
function getUrl(url) { return '/api/' + url }

//上传图片设置信息
const uploadImg = '/api/admin/common/uploadImg'

export {uploadImg}

export function getTableData(url,data) {
    return UcRequest({
        url: getUrl(url),
        method: 'post',
        data
    })
}

export function sendSms(data) {
    return UcRequest({
        url: getUrl("/admin/aliService/sendSms"),
        method: 'post',
        data
    })
}

export function getDeviceTotal(data) {
    return UcRequest({
        url: getUrl("/admin/displayList/getDeviceTotal"),
        method: 'post',
        data
    })
}

export function getNonEmergencyPage(data) {
    return UcRequest({
        url: getUrl("/admin/displayList/getNonEmergencyPage"),
        method: 'post',
        data
    })
}

export function getEnterPriseTask(data) {
    return UcRequest({
        url: getUrl("/admin/displayList/getEnterPriseTask"),
        method: 'post',
        data
    })
}

export function getIFireDataPage(data) {
    return UcRequest({
        url: getUrl("/admin/displayList/getIFireDataPage"),
        method: 'post',
        data
    })
}

export function getDeviceData(data) {
    return UcRequest({
        url: getUrl("/admin/displayList/getDeviceData"),
        method: 'post',
        data
    })
}

export function getEnterpriseDominantData(data) {
    return UcRequest({
        url: getUrl("/admin/enterpriseDominant/getEnterpriseDominantData"),
        method: 'post',
        data
    })
}

export function getOverTimeOrderList(data) {
    return UcRequest({
        url: getUrl("/admin/displayList/getOverTimeOrderList"),
        method: 'post',
        data
    })
}

export function getHasCheckEnterPriseLists(data) {
    return UcRequest({
        url: getUrl("/admin/displayList/getHasCheckEnterPriseLists"),
        method: 'post',
        data
    })
}

export function getEnterpriseTaskStatus(data) {
    return UcRequest({
        url: getUrl("/admin/enterpriseDominant/getEnterpriseTaskStatus"),
        method: 'post',
        data
    })
}




export function getFireData(data) {
    return UcRequest({
        url: getUrl("/admin/displayList/getFireData"),
        method: 'post',
        data
    })
}

export function getInUserPlaceVo(data) {
    return UcRequest({
        url: getUrl("/admin/user/getInUserPlaceVo"),
        method: 'post',
        data
    })
}

export function getUserNoReadNotice() {
    return UcRequest({
        url: getUrl("/common/getUserNoReadNotice"),
        method: 'get',
    })
}

export function getUserAgencyNum(data) {
    return UcRequest({
        url: getUrl("admin/inAgency/getUserAgencyNum"),
        method: 'post',
        data
    })
}

export function getInCheckRecordsList(data) {
    return UcRequest({
        url: getUrl("admin/inCheckRecords/getInCheckRecordsList"),
        method: 'post',
        data
    })
}

export function getMaintenanceInfoList(data) {
    return UcRequest({
        url: getUrl("admin/displayList/getMaintenanceInfoList"),
        method: 'post',
        data
    })
}

export function getUnFinishFireInfoList(data) {
    return UcRequest({
        url: getUrl("admin/fireInfo/getUnFinishFireInfoList"),
        method: 'post',
        data
    })
}


export function getYsToken() {
    return UcRequest({
        url: getUrl("admin/auth/getYsToken"),
        method: 'get',
    })
}

export function getOption(data) {
    return UcRequest({
        url: getUrl("common/getOption"),
        method: 'post',
        data
    })
}

export function test(data) {
    return UcRequest({
        url: getUrl("common/test"),
        method: 'post',
        data
    })
}

export function getVideoUser(data) {
    return UcRequest({
        url: getUrl("admin/user/getVideoUser"),
        method: 'post',
        data
    })
}

export function handleHkMonitorNotice(data) {
    return UcRequest({
        url: getUrl("common/handleHkMonitorNotice"),
        method: 'post',
        data
    })
}

export function liquidLevelNotice(data) {
    return UcRequest({
        url: getUrl("common/liquidLevelNotice"),
        method: 'post',
        data
    })
}

export function waterPressureNotice(data) {
    return UcRequest({
        url: getUrl("common/waterPressureNotice"),
        method: 'post',
        data
    })
}

export function electricTransfinite(data) {
    return UcRequest({
        url: getUrl("common/electricTransfinite"),
        method: 'post',
        data
    })
}


export function windSpeedTransfinite(data) {
    return UcRequest({
        url: getUrl("common/windSpeedTransfinite"),
        method: 'post',
        data
    })
}

export function batchInput(data) {
    return UcRequest({
        url: getUrl("admin/staff/batchInput"),
        method: 'post',
        data
    })
}

//隐患工单待办
export function getInHiddenDanger(data) {
    return request({
        url: getUrl("admin/displayList/getHiddenDangerList"),
        method: 'post',
        data
    })
}

//用户在线统计
export function getOnlineCount(data){
    return request({
        url:getUrl("admin/displayList/getOnlineCount"),
        method:'post',
        data
    })
}